<?php
    get_header();
?>
	 <?php if (have_posts()) :$i=0; while (have_posts()) : the_post(); ?>
	 	<ul id="posts">
	 		<li class="post">
	 			<div class="post_content">
	 				<h2 class="title<?php if ( is_sticky() ) : ?> sticky<?php endif; ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
	 				<div class="txt"><?php the_content('<span id="postmore">阅读全文 &raquo;</span>'); ?></div>
	 			</div>
	 			<div class="post_info">
	 				<span class="post_time"><?php esc_attr( the_time('Y-m-d') ); ?></span>
	 				<span class="post_category"><?php printf('%s', get_the_category_list(', ')); ?></span>
	 				<?php the_tags('<span class="post_tags">',', ','</span>'); ?>
	 			<div>
	 		</li>
	 	</ul>
	 	
	<?php
		endwhile;
		else :
			echo walleve_404_message();
		endif;
	?>

	<?php if(!(is_page() || is_single()) ){ ?>
		<div id="pagenav">
			<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
		</div>
	<?php } ?>

<?php get_footer(); ?>
